package com.wuyoucar.mapper;

import com.wuyoucar.common.ResultBean;
import com.wuyoucar.entity.TPolicy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: jiangdz
 * @ProjectName: mywuyou_car
 * @Package: com.wuyoucar.mapper
 * @ClassName: TPolicyMapper
 * @Description:
 * @Date: 2020-09-24  11:14
 * @UpdateUser: asus
 * @UpdateDate: 2020-09-24  11:14
 * @UpdateRemark: [说明本次修改内容]
 * @Version: [v1.0]
 * @Since JDK 1.8
 */
@Component
@Mapper
public interface TPolicyMapper {
    //查看保单
    List<TPolicy> queryById(@Param("userid") Integer userid);

    //根据保单号查看保单
    TPolicy queryPolicyno(@Param("policyno") Integer policyno);

    //修改保单表
    int updateTPolicyById(TPolicy tPolicy);

    //查看保单号
    TPolicy selectPolicyno(@Param("policyno") Integer policyno, @Param("userid") Integer userid);
}
